<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">/*
  Generated by kissy-xtemplate.*/
KISSY.add('overlay/dialog-xtpl', function () {
    return function (scopes, S, undefined) {
        var buffer = &quot;&quot;,
            config = this.config,
            engine = this,
            utils = config.utils;
        var runBlockCommandUtil = utils[&quot;runBlockCommand&quot;],
            getExpressionUtil = utils[&quot;getExpression&quot;],
            getPropertyOrRunCommandUtil = utils[&quot;getPropertyOrRunCommand&quot;];
        buffer += '';
        var config1 = {};
        var params2 = [];
        params2.push('overlay/close-xtpl');
        config1.params = params2;
        var id0 = getPropertyOrRunCommandUtil(engine, scopes, config1, &quot;include&quot;, 0, 1, false, undefined);
        buffer += id0;
        buffer += '\r\n&lt;div id=&quot;ks-content-';
        var id3 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 2, undefined, false);
        buffer += getExpressionUtil(id3, true);
        buffer += '&quot;\r\n     class=&quot;';
        var config5 = {};
        var params6 = [];
        params6.push('content');
        config5.params = params6;
        var id4 = getPropertyOrRunCommandUtil(engine, scopes, config5, &quot;getBaseCssClasses&quot;, 0, 3, true, undefined);
        buffer += id4;
        buffer += '&quot;&gt;\r\n    &lt;div class=&quot;';
        var config8 = {};
        var params9 = [];
        params9.push('header');
        config8.params = params9;
        var id7 = getPropertyOrRunCommandUtil(engine, scopes, config8, &quot;getBaseCssClasses&quot;, 0, 4, true, undefined);
        buffer += id7;
        buffer += '&quot;\r\n         style=&quot;\r\n';
        var config10 = {};
        var params11 = [];
        var id12 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;headerStyle&quot;, 0, 6, undefined, true);
        params11.push(id12);
        config10.params = params11;
        config10.fn = function (scopes) {
            var buffer = &quot;&quot;;
            buffer += ' \r\n ';
            var id13 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;xindex&quot;, 0, 7, undefined, false);
            buffer += getExpressionUtil(id13, true);
            buffer += ':';
            var id14 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;.&quot;, 0, 7, undefined, false);
            buffer += getExpressionUtil(id14, true);
            buffer += ';\r\n';
            return buffer;
        };
        buffer += runBlockCommandUtil(engine, scopes, config10, &quot;each&quot;, 6);
        buffer += '\r\n&quot;\r\n         id=&quot;ks-stdmod-header-';
        var id15 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 10, undefined, false);
        buffer += getExpressionUtil(id15, true);
        buffer += '&quot;&gt;';
        var id16 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;headerContent&quot;, 0, 10, undefined, false);
        buffer += getExpressionUtil(id16, false);
        buffer += '&lt;/div&gt;\r\n\r\n    &lt;div class=&quot;';
        var config18 = {};
        var params19 = [];
        params19.push('body');
        config18.params = params19;
        var id17 = getPropertyOrRunCommandUtil(engine, scopes, config18, &quot;getBaseCssClasses&quot;, 0, 12, true, undefined);
        buffer += id17;
        buffer += '&quot;\r\n         style=&quot;\r\n';
        var config20 = {};
        var params21 = [];
        var id22 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;bodyStyle&quot;, 0, 14, undefined, true);
        params21.push(id22);
        config20.params = params21;
        config20.fn = function (scopes) {
            var buffer = &quot;&quot;;
            buffer += ' \r\n ';
            var id23 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;xindex&quot;, 0, 15, undefined, false);
            buffer += getExpressionUtil(id23, true);
            buffer += ':';
            var id24 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;.&quot;, 0, 15, undefined, false);
            buffer += getExpressionUtil(id24, true);
            buffer += ';\r\n';
            return buffer;
        };
        buffer += runBlockCommandUtil(engine, scopes, config20, &quot;each&quot;, 14);
        buffer += '\r\n&quot;\r\n         id=&quot;ks-stdmod-body-';
        var id25 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 18, undefined, false);
        buffer += getExpressionUtil(id25, true);
        buffer += '&quot;&gt;';
        var id26 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;bodyContent&quot;, 0, 18, undefined, false);
        buffer += getExpressionUtil(id26, false);
        buffer += '&lt;/div&gt;\r\n\r\n    &lt;div class=&quot;';
        var config28 = {};
        var params29 = [];
        params29.push('footer');
        config28.params = params29;
        var id27 = getPropertyOrRunCommandUtil(engine, scopes, config28, &quot;getBaseCssClasses&quot;, 0, 20, true, undefined);
        buffer += id27;
        buffer += '&quot;\r\n         style=&quot;\r\n';
        var config30 = {};
        var params31 = [];
        var id32 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;footerStyle&quot;, 0, 22, undefined, true);
        params31.push(id32);
        config30.params = params31;
        config30.fn = function (scopes) {
            var buffer = &quot;&quot;;
            buffer += ' \r\n ';
            var id33 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;xindex&quot;, 0, 23, undefined, false);
            buffer += getExpressionUtil(id33, true);
            buffer += ':';
            var id34 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;.&quot;, 0, 23, undefined, false);
            buffer += getExpressionUtil(id34, true);
            buffer += ';\r\n';
            return buffer;
        };
        buffer += runBlockCommandUtil(engine, scopes, config30, &quot;each&quot;, 22);
        buffer += '\r\n&quot;\r\n         id=&quot;ks-stdmod-footer-';
        var id35 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 26, undefined, false);
        buffer += getExpressionUtil(id35, true);
        buffer += '&quot;&gt;';
        var id36 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;footerContent&quot;, 0, 26, undefined, false);
        buffer += getExpressionUtil(id36, false);
        buffer += '&lt;/div&gt;\r\n&lt;/div&gt;\r\n&lt;div tabindex=&quot;0&quot;&gt;&lt;/div&gt;';
        return buffer;
    }
});</pre>
</body>
</html>
